<?php

use think\migration\Migrator;
use think\migration\db\Column;

class CreateMenuTable extends Migrator
{
    /**
     *创建菜单表
     */
//    public function up()
//    {
//        $table=$this->table("menu",array("engine"=>"MyISAM","comment"=>"菜单表"));
//        $table->addColumn("parentid","int",["limit"=>11,"comment"=>"上级ID"]);
//        $table->addColumn("app","string",["limit"=>20,"comment"=>"上级ID"]);
//    }
    public function down(){
        $this->dropDatabase("menu");
    }
}
